// 搜索表单配置
export const searchForm = [
    {
        field: 'username', // 双向绑定的字段
        type: 'input',
        label: '用户名',
        placeholder: '请输入用户名',
        // rules: [
        //     {
        //         required: true,
        //         message: '请输入用户名',
        //         trigger: 'blur',
        //     }
        // ],
        colSpan: 6,
        layout: {
            xl: 6, // 24 /6
            lg: 8,
            md: 12,
            sm: 24,
            xs: 24
        }
    },
    {
        field: 'state',
        type: 'select',
        label: '状态',
        placeholder: '选择状态',
        options: [
            {value: 1, label: '正常'},
            {value: 0, label: '禁用'}
        ], colSpan: 3,
    }
]


// 列表数据
export const tableColumns = [{
    title: '用户名',
    width: 100,
    dataIndex: 'username',
    key: 'username',
    fixed: 'left',
}, {
    title: '用户角色',
    width: 100,
    dataIndex: 'roles',
    key: 'roles',
    fixed: 'left',
}, {
    title: '状态',
    dataIndex: 'state',
    key: 'state',
    width: 150,
}, {
    title: '创建时间',
    dataIndex: 'created',
    key: 'created',
    width: 150,
}, {
    title: '操作',
    key: 'operation',
    fixed: 'right',
    width: 100,
}];

// 分页
export const pagination = {
    total: 20,
    current: 1,
    pageSize: 10,
}